export default function userName(state = '', action) {
  const { type, payload} = action;
  switch (type) {
  case 'CHANGEUSER':
    return payload;

  case 'GETONE':
    return payload + 'GET';

  default:
    return state;

  }
}